import request from '@/utils/request'

// 查询项目日报列表
export function listProjectDailyReport(query) {
  return request({
    url: '/production/projectDailyReport/list',
    method: 'get',
    params: query
  })
}

// 查询项目日报所有列表
export function listAllProjectDailyReport(query) {
  return request({
    url: '/production/projectDailyReport/listAll',
    method: 'get',
    params: query
  })
}

// 查询项目日报详细
export function getProjectDailyReport(id) {
  return request({
    url: '/production/projectDailyReport/getInfo/' + id,
    method: 'get'
  })
}

// 新增项目日报
export function addProjectDailyReport(data) {
  return request({
    url: '/production/projectDailyReport/add',
    method: 'post',
    data: data
  })
}

// 修改项目日报
export function updateProjectDailyReport(data) {
  return request({
    url: '/production/projectDailyReport/edit',
    method: 'post',
    data: data
  })
}

// 删除项目日报
export function delProjectDailyReport(id) {
  return request({
    url: '/production/projectDailyReport/remove/' + id,
    method: 'get'
  })
}
